package com.blog.anxinzhu.dubbo.server.api;

import com.alibaba.dubbo.config.annotation.Service;
import com.blog.anxinzhu.dubbo.server.service.HouseResourcesService;
import com.blog.anxinzhu.dubbo.service.api.ApiHouseResourcesService;
import com.blog.anxinzhu.dubbo.service.pojo.HouseResources;
import com.blog.anxinzhu.dubbo.service.vo.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author chenlin
 * @create 2020-12-02  14:39
 * dubbo service接口实现 将spring提供的service调用实现dubbo的service
 */
@Service(version = "1.0.0")
public class ApiHouseResourcesServiceImpl implements ApiHouseResourcesService {
    @Autowired
    HouseResourcesService houseResourcesService;
    @Override
    public int saveHouseResources(HouseResources houseResources) {
        return houseResourcesService.saveHouseResources(houseResources);
    }

    @Override
    public PageInfo<HouseResources> queryHouseResourcesList(int page, int pageSize, HouseResources queryCondition) {
        return houseResourcesService.queryHouseResourcesList(page, pageSize, queryCondition);
    }

    @Override
    public HouseResources queryHouseResourcesById(Integer id) {
        return houseResourcesService.queryHouseResourcesById(id);
    }
}
